package edu.arizona.arid.akshen.controller;

import javax.microedition.lcdui.Displayable;
import javax.microedition.lcdui.Form;

public abstract class ViewController {

	protected Form form;
	protected NavigationController navigationController;
	
	public Displayable getDisplayable() {
		return form;
	}

	public void setNavigationController(NavigationController navigationController) {
		this.navigationController = navigationController;
	}

	public NavigationController getNavigationController() {
		return navigationController;
	}
	
	/**
	 * This will be called before the view appears
	 */
	public void viewWillAppear() {
		
	}
	
	/**
	 * This will be called after the view appeared
	 */
	public void viewDidAppear() {
		
	}
	
	/**
	 * This will be called before the view disappears
	 */
	public void viewWillDisappear() {
		
	}
	
	/**
	 * This will be called after the view disappeared
	 */
	public void viewDidDisappear() {
		
	}

}
